onApplyWindowInsets

Called when the view should apply WindowInsetsCompat according to its internal policy.

Clients may supply an OnApplyWindowInsetsListener to a view. If one is set it will be called during dispatch instead of this method. The listener may optionally call this method from its own implementation if it wishes to apply the view's default insets policy in addition to its own.

Return

The supplied insets with any applied insets consumed

Parameters

view

The View against which to invoke the method.

insets

Insets to apply